<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <img src="../../../../images/webapi/第一单元/1.webp" alt="">
  <script>
    const arr = ["../../../../images/webapi/第一单元/1.webp", "../../../../images/webapi/第一单元/2.webp", "../../../../images/webapi/第一单元/3.webp"]

    const ran = Math.floor(Math.random() * arr.length)
    const pic = document.querySelector('img')
    pic.src = arr[ran]

  </script>
</body>

</html>